/**
 *
 * 版权所有 © cybersky.com
 *
 */
package cn.cybertron.primus.report.entity;

import java.io.Serializable;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Name;

import cn.cybertron.nutz.ext.mvc.validate.ValidateRuleType;
import cn.cybertron.nutz.ext.mvc.validate.annotation.ValidateType;
import cn.cybertron.nutz.ext.mvc.validate.annotation.Validations;

/**
 * 报表/报告基本信息类
 * @author: ch
 */
public class ReportBase implements Serializable {

	protected static final long serialVersionUID = 4517097266574611019L;

	/**
	 * 唯一标识，用来做中间表名称
	 */
	@Name
	@Column
	protected String uuid;
	
	/**
	 * 报表名称
	 */
	@Column
	@Validations(rules = {
		@ValidateType(type = ValidateRuleType.required, msgkey = "report.validate.name.required", bundle = "report"),
		@ValidateType(type = ValidateRuleType.maxlength, parameters = {	"64" }, msgkey = "report.validate.name.maxLength", bundle = "report"),
		@ValidateType(type = ValidateRuleType.regexp, parameters = {"^(?!_)[\u4e00-\u9fa5a-zA-Z0-9._-]+$" }, msgkey = "report.validate.name.illegal", bundle = "report") 
	})
	protected String name;

	/**
	 * 创建时间
	 */
	@Column
	protected long created;
	
	/**
	 * 最后修改时间
	 */ 
	@Column
	protected long modified;

	/**
	 * 创建者
	 */
	@Column
	protected long creatorid;
	
	/**
	 * 描述
	@Column
	protected String description;
	 */

	public ReportBase() {

	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public long getCreated() {
		return created;
	}

	public void setCreated(long created) {
		this.created = created;
	}

	public long getModified() {
		return modified;
	}

	public void setModified(long modified) {
		this.modified = modified;
	}

	public long getCreatorid() {
		return creatorid;
	}

	public void setCreatorid(long creatorid) {
		this.creatorid = creatorid;
	}
	
}
